package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.MemberDO;
import com.ssy.lingxi.member.merchant.entity.MemberInspectDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 会员考察Repository
 * @author yzc
 * @version 2.0.0
 * @date 2021/5/17
 */
@Repository
public interface MemberInspectRepository extends JpaRepository<MemberInspectDO, Long>, JpaSpecificationExecutor<MemberInspectDO> {
    MemberInspectDO findFirstByMemberIdAndRoleIdAndSubMemberAndSubRoleIdAndSource(Long memberId, Long roleId, MemberDO subMember, Long subRoleId, Integer source);
}
